package com.ck.validate.config;

import com.ck.validate.domain.Counter;
import com.ck.validate.domain.Piano;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname SpringConfig
 * @Description TODO
 * @Date 2021/7/15 9:07
 * @Created by lpc
 */
@Configuration
public class SpringConfig {

    @Bean
    public Piano piano() {
        return new Piano();
    }

    @Bean(name = "counter")
    public Counter counter() {
        return new Counter(12, "Shake it Off", piano());
    }

}
